package travelDream.managedBean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import travelDream.dto.PacchettoPreconfiguratoDTO;

@ManagedBean(name = "dettagliPPManagedBean")
@SessionScoped
public class DettagliPPManagedBean {
	private PacchettoPreconfiguratoDTO p;

	public PacchettoPreconfiguratoDTO getP() {
		return p;
	}

	public void setP(PacchettoPreconfiguratoDTO p) {
		this.p = p;
	}
	
	public String parametriPP(PacchettoPreconfiguratoDTO p) {
		this.p = p;
		return "dettagli_pacchetto.xhtml?faces-redirect=true";
	}
}
